package com.zhijiaoyun.model;

import java.util.Date;

/**
 * @author shisfish
 * @date 2017/6/6
 */
public class News extends ModifyModel {
	private static final long serialVersionUID = -4193476153468130017L;

	private Long newsId;

    private String categoryIds;

    private String title;

    private String summary;

    private String keyWord;

    private String imageUrl;

    private String source;

    private String author;

    private Date publishTime;

    private Integer viewNum;

    private Integer praiseNum;

    private Integer commentNum;

    private String content;

    public News() {
		super();
	}

	public News(String categoryIds, String title, String summary, String keyWord, String imageUrl,
			String source, String author, Date publishTime, String content, String createUser) {
		super();
		this.categoryIds = categoryIds;
		this.title = title;
		this.summary = summary;
		this.keyWord = keyWord;
		this.imageUrl = imageUrl;
		this.source = source;
		this.author = author;
		this.publishTime = publishTime;
		this.viewNum = 0;
		this.praiseNum = 0;
		this.commentNum = 0;
		this.content = content;
		this.createUser = createUser;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public Long getNewsId() {
        return newsId;
    }

    public void setNewId(Long newsId) {
        this.newsId = newsId;
    }

    public String getCategoryIds() {
        return categoryIds;
    }

    public void setCategoryIds(String categoryIds) {
        this.categoryIds = categoryIds == null ? null : categoryIds.trim();
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary == null ? null : summary.trim();
    }

    public String getKeyWord() {
        return keyWord;
    }

    public void setKeyWord(String keyWord) {
        this.keyWord = keyWord == null ? null : keyWord.trim();
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl == null ? null : imageUrl.trim();
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source == null ? null : source.trim();
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author == null ? null : author.trim();
    }

    public Date getPublishTime() {
        return publishTime;
    }

    public void setPublishTime(Date publishTime) {
        this.publishTime = publishTime;
    }

    public Integer getViewNum() {
        return viewNum;
    }

    public void setViewNum(Integer viewNum) {
        this.viewNum = viewNum;
    }

    public Integer getPraiseNum() {
        return praiseNum;
    }

    public void setPraiseNum(Integer praiseNum) {
        this.praiseNum = praiseNum;
    }

    public Integer getCommentNum() {
        return commentNum;
    }

    public void setCommentNum(Integer commentNum) {
        this.commentNum = commentNum;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }
}